package com.itheima.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.server.domain.Business;
import com.itheima.server.vo.BusinessChangeStatisticsVo;
import com.itheima.server.vo.DeptBusVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Value;

import java.time.LocalDateTime;
import java.util.List;
import java.util.Map;

@Mapper
public interface BusinessMapper extends BaseMapper<Business> {


    /**
     * 获取业务转移统计数据
     *
     * @param begin
     * @param end
     * @return
     */
    List<BusinessChangeStatisticsVo> getBusinessChangeStatistics(@Param("begin") LocalDateTime begin, @Param("end") LocalDateTime end);

    /**
     * 获取部门业务数量
     *
     * @param begin
     * @param end
     * @return
     */
    List<DeptBusVo> getDeptBusinessCount(@Param("begin") LocalDateTime begin, @Param("end") LocalDateTime end);
}
